package com.dy.project.mapper;

import com.dy.project.domain.CommoditySignBatchOperationTemplate;
import com.dy.project.domain.CommoditySignGroupTemplate;
import com.dy.project.domain.CommoditySignTemplate;
import com.dy.project.domain.McCommoditySign;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 商品签收Mapper接口
 * 
 * @author ruoyi
 * @date 2020-07-29
 */
@Mapper
public interface McCommoditySignMapper 
{
    /**
     * 查询商品签收
     *
     * @param csId 商品签收ID
     * @return 商品签收
     */
    public McCommoditySign selectMcCommoditySignById(Long csId);

    /**
     * 新增商品签收
     *
     * @param mcCommoditySign 商品签收
     * @return 结果
     */
    public int insertMcCommoditySign(McCommoditySign mcCommoditySign);

    /**
     * 批量新增
     */
    public int insertBatch(@Param("list")List<McCommoditySign> list);
    /**
     * 修改商品签收
     * 
     * @param mcCommoditySign 商品签收
     * @return 结果
     */
    public int updateMcCommoditySign(McCommoditySign mcCommoditySign);


    /**
     * 查询商品签收列表组
     */
    public List<CommoditySignGroupTemplate> selectMcCommoditySignListGroup(CommoditySignGroupTemplate commoditySignGroupTemplate);

    /**
     * 根据商品ID查询商品签收列表组
     */
    public List<CommoditySignGroupTemplate> selectCommoditySignListGroupByAcId(CommoditySignGroupTemplate commoditySignGroupTemplate);

    /**
     * 查询商品签收模板
     */
    public List<CommoditySignTemplate> listCommoditySignTemplate(CommoditySignTemplate commoditySignTemplate);

    /**
     * 修改簽收子狀態
     */
    public int updateSignDtlState(McCommoditySign updateSign);

    /**
     * 批量刪除/補貨貨物
     */
    public int handleSignCommodityBatch(CommoditySignBatchOperationTemplate commoditySignBatchOperationTemplate);

    /**
     * 一鍵簽收
     */
    public int signAll(List<McCommoditySign> signList);
}
